package com.ruoyi.huanghefd.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 动火工作票 子表1 执行人和操作证编号
 * @TableName worksheet_dh_exc
 */
@TableName(value ="worksheet_dh_exc")
@Data
public class WorksheetDhExc implements Serializable {
    /**
     * ID
     */
    private String dhId;

    /**
     * 工作票编号
     */
    private String dhCode;

    /**
     * 动火执行人
     */
    private String dhExecutorid;

    /**
     * 动火执行人
     */
    private String dhExecutor;

    /**
     * 操作证编号
     */
    private String operaCard;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WorksheetDhExc other = (WorksheetDhExc) that;
        return (this.getDhId() == null ? other.getDhId() == null : this.getDhId().equals(other.getDhId()))
            && (this.getDhCode() == null ? other.getDhCode() == null : this.getDhCode().equals(other.getDhCode()))
            && (this.getDhExecutorid() == null ? other.getDhExecutorid() == null : this.getDhExecutorid().equals(other.getDhExecutorid()))
            && (this.getDhExecutor() == null ? other.getDhExecutor() == null : this.getDhExecutor().equals(other.getDhExecutor()))
            && (this.getOperaCard() == null ? other.getOperaCard() == null : this.getOperaCard().equals(other.getOperaCard()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDhId() == null) ? 0 : getDhId().hashCode());
        result = prime * result + ((getDhCode() == null) ? 0 : getDhCode().hashCode());
        result = prime * result + ((getDhExecutorid() == null) ? 0 : getDhExecutorid().hashCode());
        result = prime * result + ((getDhExecutor() == null) ? 0 : getDhExecutor().hashCode());
        result = prime * result + ((getOperaCard() == null) ? 0 : getOperaCard().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", dhId=").append(dhId);
        sb.append(", dhCode=").append(dhCode);
        sb.append(", dhExecutorid=").append(dhExecutorid);
        sb.append(", dhExecutor=").append(dhExecutor);
        sb.append(", operaCard=").append(operaCard);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}